﻿<%@ Page Title="" Language="C#" MasterPageFile="~/TimKenSite.Master" AutoEventWireup="true" CodeBehind="CommitOrders.aspx.cs" Inherits="TimKen.Web.Shop.CommitOrders" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Title" runat="server">
   <link href="../Common/Style/reset.css" rel="stylesheet" type="text/css" />
    <link href="../Common/Style/style.css" rel="stylesheet" type="text/css" />
    <link href="../Common/Style/common.css" rel="stylesheet" type="text/css" />
<!--[if lte IE 6]> 
<script type="text/javascript" src="js/DD_belatedPNG_0.0.8a-min.js"></script>
<script type="text/javascript">
DD_belatedPNG.fix('.fixpng,div,ul,li,span');
</script>
<![endif]-->
    <script src="../Common/Script/jquery-1.7.2/jquery-1.7.2.min.js" type="text/javascript"></script>
    <script src="../Common/Script/common.js" type="text/javascript"></script>
    <script src="../My97DatePicker/WdatePicker.js" type="text/javascript"></script>
<script type="text/javascript">
    $(document).ready(function () {
        $(".nav_li:eq(0)").children("a").addClass("navon"); //导航，当前栏目高亮	
        $(".address_topspan").click(function () {
            $(this).parent().remove();
        });
        var getVal = $('#<%=yhlxid.ClientID %> option:selected').text();
        if (getVal == 'Freight 委托货运') {
            $(".address_top").show();
            $(".address_table").show();
        } else {
            $(".address_top").hide();
            $(".address_table").hide();
        }
        $("#<%=yhlxid.ClientID %>").change(function () {
            var getVal = $('#<%=yhlxid.ClientID %> option:selected').text();
            if (getVal == 'Freight 委托货运') {
                $(".address_top").show();
                $(".address_table").show();
            } else {
                $(".address_top").hide();
                $(".address_table").hide();
            }
        });
        $(".address_fp_qtdz").click(function () {
            $(".address_fp_box").show();
        });
        $(".address_fp_thdz").click(function () {
            $(".address_fp_box").hide();
        });
    });
    window.onload = function () { for (var ii = 0; ii < document.links.length; ii++) document.links[ii].onfocus = function () { this.blur(); } }	
</script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="body" runat="server">
<form runat="server">
<div class="common_right floatright">
      	

			<div class="car common_border">
              
            	<ul class="car_step">
                	<img src="../Common/Image/iconbtnbg/car_gwch.gif" /><img src="../Common/Image/iconbtnbg/car_qrfhl.gif" /><img src="../Common/Image/iconbtnbg/car_tjdd.gif" />
                </ul>
                
                <ul class="address">
                	
                    <div class="address_lx">
                    	运货类型:
                        <asp:DropDownList ID="yhlxid" runat="server"  DataTextField="TransTypeName"
                    DataValueField="TransTypeID">
                        </asp:DropDownList>
                       <%-- <select id="yhlxid"><option>Freight 委托</option><option>Self 自提</option></select>--%>
                    </div>
                    
                    <div class="address_top">
                      <ul>
                        	<h2>常用地址</h2>
                            <asp:Repeater ID="Rp_Address" runat="server" 
                                onitemcommand="Rp_Address_ItemCommand">
                          <ItemTemplate>
                            <li><span>  
                                <asp:LinkButton ID="lk_Del" OnClientClick="retutn confirm('您确定要删除?')" runat="server" CommandName="del" CommandArgument='<%#Eval("id")%>'>删除</asp:LinkButton></span>
                                <asp:RadioButton ID="rd_ck"  AutoPostBack="true" runat="server"     OnCheckedChanged="rd_CheckChanged"/>
                                （轻松购）<%#Eval("Consignee")%>：<%#Eval("Address")%></li>
                              <asp:HiddenField ID="Rd_id" runat="server" Value='<%#Eval("id")%>' />
                           </ItemTemplate>
                           </asp:Repeater>
                        </ul>

                    </div>
                    
                    <div class="address_table">
                    
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <th scope="row"><span>*</span>收货人：</th>
    <td><input  class="address_inone" id="name" runat="server" /></td>
  </tr>
  <tr>
    <th scope="row"><span>*</span>地   址：</th>
    <td><input class="address_intwo" runat="server"  id="address" /></td>
  </tr>
  <tr>
    <th scope="row">邮政编码：</th>
    <td><input  runat="server" id="code" class="address_intd" />有助于快速确定送货地址</td>
  </tr>
  <tr>
    <th scope="row"><span>*</span>手机号码：</th>
    <td><input runat="server" id="phone" class="address_inone" />或者固定电话：<input id="pnum" runat="server" class="address_inone" /></td>
  </tr>
  <tr>
    <th scope="row">电子邮件：</th>
    <td><input runat="server" id="email" class="address_inone" />用来接收订单邮件提醒，便于您及时了解订单状况</td>
  </tr>
    <tr>
    <th scope="row">期望交货日期：</th>
    <td><input runat="server" id="txt_Date" class="address_inone Wdate" onclick="WdatePicker()" /></td>
  </tr>
  <tr>
    <th scope="row" style="vertical-align:top">备注：</th>
    <td><textarea class="address_inf" id="remarks" runat="server"></textarea></td>
  </tr>  
  <tr>
    <th scope="row">&nbsp;</th>
    <td><div id="adddizhi">  <asp:LinkButton ID="lk_Add" runat="server" onclick="lk_Add_Click">[添加常用地址]</asp:LinkButton></div></td>
  </tr>
 <%-- <tr>
    <th scope="row">&nbsp;</th>
    <td><asp:ImageButton ID="img_add" runat="server"  
            ImageUrl="../Common/Image/iconbtnbg/order_shrxx.gif" onclick="img_add_Click"/></td>
  </tr>--%>
</table>
                    
                    
                    </div>
                    
                    <div class="address_fpbox">
                    	<ul class="address_fp_top">
                        	<b>发票邮寄地址：</b>
                            <asp:RadioButton ID="Rad_1" runat="server" GroupName="fpdz" Text="同货地址" class="address_fp_thdz"/>
                            <asp:RadioButton ID="Rad_2" runat="server" GroupName="fpdz" Text="其他地址" class="address_fp_qtdz" Checked="true" />
                        </ul>
                        <div class="address_fp_box">
                        	<ul class="address_fp_box_top"></ul>
                            <ul class="address_fp_box_con">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <th scope="row"><span>*</span>联系人</th>
    <td><input id="Blxr" runat="server" class="address_inone"  /></td>
  </tr>
  <tr>
    <th scope="row"><span>*</span>地 址</th>
    <td><input class="address_intwo" runat="server" id="Baddress" /></td>
  </tr>
  <tr>
    <th scope="row">邮政编码</th>
    <td><input runat="server" id="Bcode" class="address_intd" />有助于快速确定送货地址</td>
  </tr>
  <tr>
    <th scope="row"><span>*</span>手机号码</th>
    <td><input runat="server" id="Bphone" class="address_inone" />或者固定电话：<input runat="server" id="BPnum" class="address_inone" /></td>
  </tr>
</table>
                            
                            </ul>
                        </div>
                        <ul class="address_fp_btn"><a href="#">
                        <asp:ImageButton ID="img_add" runat="server"  
            ImageUrl="../Common/Image/common/qrshxxbtn.gif" onclick="img_add_Click"/></a><a href="ShopProJect.aspx"><img src="../Common/Image/common/fhddlbbtn.gif" /></a></ul>
                    </div>
                    
                                    
                </ul>
                
                
            
            </div>

            
        </div>
        </form>
</asp:Content>
